package me.atbar.moonlib;

import lombok.Getter;
import me.atbar.moonlib.version.VersionEnum;
import org.bukkit.plugin.java.JavaPlugin;

/**
 * @author Administrator
 */
public class Main extends JavaPlugin {

    @Getter
    private static Main instance;
    @Getter
    private static VersionEnum versionEnum;

    @Override
    public void onEnable() {
        instance = this;
        versionEnum = VersionEnum.matchVersion();
        if(versionEnum == VersionEnum.NOT_SUPPORT) {
            this.setEnabled(false);
        }
    }

}
